home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.5 KB | 79 lines | [TEXT/MPS ] |
- //----------------------------------------------------------------------------------------
- // MDemoText.cp
- // Copyright © 1985-96 by Apple Computer, Inc. All rights reserved.
- //----------------------------------------------------------------------------------------
-
- #ifndef __UDEMOTEXT__
- #include "UDemoText.h"
- #endif
-
- // MacApp
-
- #ifndef __MACAPP__
- #include "MacApp.h"
- #endif
-
- #if qDrag
- #ifndef __UDRAGDROP__
- #include "UDragDrop.h"
- #endif
- #endif
-
- #if qPowerTalk
- #ifndef __UMAILER__
- #include "UMailer.h"
- #endif
- #endif
-
- #if UsingDemoTextPrinting
- # ifndef __UPRINTING__
- # include "UPrinting.h"
- # endif
- #endif
-
- #ifndef __USECTIONMGR__
- #include "USectionMgr.h"
- #endif
-
- #ifndef __UTEVIEW__
- #include "UTEView.h"
- #endif
-
-
- //----------------------------------------------------------------------------------------
- // main:
- //----------------------------------------------------------------------------------------
- #pragma push
- #pragma processor 68000
- #pragma segment Main
-
- void main()
- {
- InitUMacApp(6); // Initialize MacApp; 6 calls to MoreMasters
-
- #if UsingDemoTextPrinting
- InitUPrinting();
- #endif
-
- InitUTEView();
- #if qPowerTalk
- if (HasAOCEToolBox())
- InitUMailer();
- #endif
- #if qDrag
- if (HasDragManager())
- InitUDragManager();
- #endif
-
- TDemoTextApplication* gDemoTextApplication = new TDemoTextApplication;
- gDemoTextApplication->IDemoTextApplication();
- gDemoTextApplication->Run();
- } // main
-
- #pragma pop
-
- //----------------------------------------------------------------------------------------
- // End of MDemoText.cp
-
- #pragma segment Inline
-